//
//  Util.swift
//  learnSpriteKit
//
//  Created by Open on 3/19/15.
//  Copyright (c) 2015 open-groupe. All rights reserved.

import Foundation

struct Vector2D {
    var x = 0.0
    var y = 0.0
}

let v1 = Vector2D(x:15, y:100)

func +(left: Vector2D, right: Vector2D) -> Vector2D
{
    return Vector2D(x: left.x + right.x, y: left.y + right.y)
}

infix operator . {
    associativity none
    precedence 160
}
